import request from '@/utils/request'
export const getAllChannels = () => {
  return request({
    url: '/v1_0/channels'
  })
}
// 在线添加频道
export const addUserChannels = data => {
  return request({
    url: '/v1_0/user/channels',
    method: 'PATCH',
    data: { channels: [data] }
  })
}
// 在线删除频道
export const delUserChannels = id => {
  return request({
    url: `/v1_0/user/channels/${id}`,
    method: 'DELETE'
  })
}
